import httpInstance from '@/utils/http.js'

export const getBannerAPI = (params = {}) => {
  //默认为1，商品为2
  const { distributionSite = '1' } = params
  return httpInstance.get('home/banner', {
    params: {
      distributionSite
    }
  })
}

export const getNewAPI = () => {
  return httpInstance.get('home/new')
}

export const getHotAPI = () => {
  return httpInstance.get('home/hot')
}

export const getGoodsAPI = () => {
  return httpInstance.get('home/goods')
}
